package net.hserver.sync.init;

import cn.hserver.core.interfaces.InitRunner;
import cn.hserver.core.ioc.annotation.Autowired;
import cn.hserver.core.ioc.annotation.Bean;
import cn.hserver.core.ioc.annotation.Order;
import net.hserver.sync.config.SyncType;
import net.hserver.sync.entity.SyncConfigEntity;
import net.hserver.sync.mapper.InitSqlMapper;
import net.hserver.sync.mapper.SyncConfigMapper;

import java.util.Date;
import java.util.List;
@Order(1)
@Bean
public class InitSql implements InitRunner {

    @Autowired
    private InitSqlMapper initSqlMapper;

    @Autowired
    private SyncConfigMapper syncConfigMapper;

    @Override
    public void init(String[] args) {
        //初始化sql
        initSqlMapper.createTableSyncConfig();
        initSqlMapper.createTableSyncWebDavConfig();
        initSqlMapper.createTableSyncLog();

    }
}
